package org.hwua.production.service;

import java.util.List;

import org.hwua.production.domain.DeviceFault;
import org.hwua.production.domain.custom.CustomResult;
import org.hwua.production.domain.custom.EUDataGridResult;
/**
 * 设备故障管理业务逻辑层接口
 * @author hwua
 *
 */
public interface DeviceFaultService {

	EUDataGridResult getList(int page, int rows, DeviceFault deviceFault) throws Exception;
	
	DeviceFault get(String string) throws Exception;
	
	List<DeviceFault> find() throws Exception;

	CustomResult insert(DeviceFault deviceFault) throws Exception;
	
	CustomResult delete(String deviceFaultId) throws Exception;
	
	CustomResult deleteBatch(String[] deviceFaultIds) throws Exception;

    CustomResult update(DeviceFault deviceFault) throws Exception;

	CustomResult updateNote(DeviceFault deviceFault) throws Exception;

	CustomResult updateAll(DeviceFault deviceFault) throws Exception;

	EUDataGridResult searchDeviceFaultByDeviceFaultId(Integer page,
			Integer rows, String deviceFaultId) throws Exception;

	EUDataGridResult searchDeviceFaultByDeviceName(Integer page, Integer rows,
			String deviceName) throws Exception;
}
